- user_email = signature.x509_certificate.email
- user = signature.signed_by_user

- if user
  = link_to user_path(user), class: 'gpg-popover-user-link' do
    %div
      = user_avatar_without_link(user: user, size: 32)

    %div
      %strong= user.name
      %div= user.to_reference

- else
  = mail_to user_email do
    %div
      = user_avatar_without_link(user_email: user_email, size: 32)

    %div
      %strong= user_email
